package com.mavenq.fly.test;

/**
 * 原文链接：https://blog.csdn.net/qq_46134964/article/details/121162226
 */
public class BinaryComputation {


    public static void main(String[] args) {
        // 20
        System.out.println(10 << 1);
        // -20
        System.out.println(-10 << 1);
        // 5
        System.out.println(10 >> 1);
        // -5
        System.out.println(-10 >> 1);
        // 5
        System.out.println(10 >>> 1);
        // 2147483643
        System.out.println(-10 >>> 1);
    }





}
